﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UFrame.TableCfg
{
    [System.Serializable]
    public class GuideCfg : IRow
    {
        public int ID { get { return id; } }
/*0*/   public int id { get; private set; } //GuideCfg
/*1*/   public string name { get; private set; } //引导名
/*2*/   public int[] steps { get; private set; } //引导步骤id
/*3*/   public int[] lunch_factors { get; private set; } //启动条件
        public void SetData(string[] array)
        {
            var arrayLen = array.Length;
            if (arrayLen > 0 && !string.IsNullOrEmpty(array[0])) id = Convert.ToInt32(array[0]);
            if (arrayLen > 1) name = array[1];
            if (arrayLen > 2) steps = UConvert.TointArray(array[2]);
            if (arrayLen > 3) lunch_factors = UConvert.TointArray(array[3]);
        }
    }
}
